Ext.define('TS.view.dilema.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.dilemaform',
    title : 'Pytanie',
	url:URL.dilema.form.dilema,
	items:[
		{xtype:'hidden',name:'dilema_id'},
		{xtype:'text',fieldLabel:'Pytanie',name:'dilema_subject'},
		{xtype:'area',fieldLabel:'Rozwinięcie pytania',name:'dilema_elaboration'}
		
		/*
		Factory.layout.column(
			
		
		)*/

	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			//Dict.bible.load();
			Util.store('Dilema').load();
		}
	},{
		text:'Nowe',
		callback:function(){
			Util.each(['Yes','No'],function(side){
				Util.store('DilemaPoint'+side).removeAll();
			})
		},
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.dilema.del.dilema
		}
	}]
});